package org.abhigarde.personalexpense.model;

import java.math.BigDecimal;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="Expenses")
public class Expense {

private long id;
private String category;
private String product;
private Date purachseDate;
private BigDecimal cost;
private String createdBy;
private Date creationDate;

public Expense() {
	super();
}
@Id
@GeneratedValue
@Column(name="id")
public long getId() {
	return id;
}
public void setId(long id) {
	this.id = id;
}
@Column(name="catagory")
public String getCategory() {
	return category;
}
public void setCategory(String category) {
	this.category = category;
}
@Column(name="product")
public String getProduct() {
	return product;
}
public void setProduct(String product) {
	this.product = product;
}
@Column(name="purchaseDate")
public Date getPurachseDate() {
	return purachseDate;
}
public void setPurachseDate(Date purachseDate) {
	this.purachseDate = purachseDate;
}
@Column(name="cost")
public BigDecimal getCost() {
	return cost;
}
public void setCost(BigDecimal cost) {
	this.cost = cost;
}
@Column(name="createdBy")
public String getCreatedBy() {
	return createdBy;
}
public void setCreatedBy(String createdBy) {
	this.createdBy = createdBy;
}
@Column(name="creationDate")
public Date getCreationDate() {
	return creationDate;
}
public void setCreationDate(Date creationDate) {
	this.creationDate = creationDate;
}
}
